package com.sl.au.entity;
/***********************************************************************
 * Module:  KeyContact.java
 * Author:  sinser张
 * Purpose: Defines the Class KeyContact
 ***********************************************************************/


import javax.persistence.*;

/**
 * 客户来访人员
 * 
 **/
@Entity
@Table(name = "sl_crm_customerVisitPerson")
public class CustomerVisitPerson extends Root {

	/** 来访对象名称 */
	@Column(name = "sName", nullable = false)
	private String name;
	
	/** 联系方式 */
	@Column(name = "sContactType")
	private String contractType;

	/** 职务 */
	@Column(name = "sPosition")
	private String position;


	/** 部门 */
	@Column(name = "sDepartment")
	private String department;

	/** 总人数 */
	@Column(name = "sPersonNum")
	private int personNum;
	

	@ManyToOne
    @JoinColumn(name="customerVisit_id")//加入一列作为外键
    private CustomerVisiting customerVisiting;



	public String getName() {
		return name;
	}



	public int getPersonNum() {
		return personNum;
	}



	public void setPersonNum(int personNum) {
		this.personNum = personNum;
	}



	public void setName(String name) {
		this.name = name;
	}



	public String getContractType() {
		return contractType;
	}



	public void setContractType(String contractType) {
		this.contractType = contractType;
	}



	public String getPosition() {
		return position;
	}



	public void setPosition(String position) {
		this.position = position;
	}



	public String getDepartment() {
		return department;
	}



	public void setDepartment(String department) {
		this.department = department;
	}



	public CustomerVisiting getCustomerVisiting() {
		return customerVisiting;
	}



	public void setCustomerVisiting(CustomerVisiting customerVisiting) {
		this.customerVisiting = customerVisiting;
	}

	
		
	

}